﻿using Infrastructure.Config;
using System;
using System.Collections.Generic;
using System.Text;

namespace OtherLib.Getui
{
    public static class GetuiConfig
    {
        public static String Host;
        public static String APPID ;
        public static String APPKEY;
        public static String MASTERSECRET;


        static GetuiConfig()
        {
            if (string.IsNullOrWhiteSpace(APPID))
            {
                var aliPayConfig = ApplicationConfig.GetConfig().GetSection("Getui");

                GetuiConfig.Host = aliPayConfig["Host"];
                GetuiConfig.APPID = aliPayConfig["APPID"];
                GetuiConfig.APPKEY = aliPayConfig["APPKEY"];
                GetuiConfig.MASTERSECRET = aliPayConfig["MASTERSECRET"];
            }
        }
       
    }
}
